package com.wanxi.polymorphic.model;

public class Cat extends Animal {
    public int height = 5;

    public Cat(int height) {
        this.height = height;
    }

    public Cat(String name, int age, int height) {
        super(name, age);
        this.height = height;
    }

    public void eat() {
        System.out.println("猫吃东西");
    }
    public void sleep(){
        System.out.println("猫睡觉");
    }
}
